#include<stdio.h>
 
int main()
{
	int i, n;
	scanf("%d",&n);
 
	while (n--)
	{
		scanf("%d",&i);
		if (i%2==0)
		{
			printf("%d\n",(i/2)*(i/2-1));
		}
		else
		{
			printf("%d\n",(i-1)*(i-1)/4);
		}
 
	}
	return 0;
} 